<template>
  <el-image
    :src="img_url"
    v-bind="$attrs"
    :preview-src-list="srcList"
  />
</template>
<script>
export default {
  // inheritAttrs: false,
  props: {
    src: String,
    previewSrcList: Array
  },
  computed: {
    img_url() {
      return this.$IMG_URL + this.src
    },
    srcList() {
      if (!this.previewSrcList || this.previewSrcList.length === 0) {
        return []
      }

      return this.previewSrcList.map(item => this.$IMG_URL + item)
    }
  }
}
</script>
<style lang="scss" scoped>

</style>
